/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.mes.client;

import java.util.Collection;
import java.util.List;

import com.xy.biz.mes.domain.req.GetManufactureOrderRequest;
import com.xy.biz.mes.domain.req.ListManufactureOrderRequest;
import com.xy.biz.mes.domain.resp.GetManufactureOrderResponse;
import com.xy.lang.domain.Page;
import com.xy.lang.domain.Result;

/**
 *
 *
 * @author zsp
 * @date 2022-1-6
 */
public interface ManufactureOrderClient {

	/**
	 * 查找一个
	 *
	 * @param request
	 * @return
	 */
	Result<GetManufactureOrderResponse> getManufactureOrder(GetManufactureOrderRequest request);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 * @return
	 */
	Result<List<GetManufactureOrderResponse>> listManufactureOrderById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<List<GetManufactureOrderResponse>> listManufactureOrder(ListManufactureOrderRequest request);

	/**
	 * 统计个数
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Integer> countManufactureOrder(ListManufactureOrderRequest request);

	/**
	 * 分页查找
	 *
	 * @param request 查找条件
	 * @return
	 */
	Result<Page<GetManufactureOrderResponse>> pageManufactureOrder(ListManufactureOrderRequest request);

}
